﻿using UnityEngine;
using System.Collections;

namespace Battle
{
    public class TransferFormationPanel : MonoBehaviour
    {
        public UILabel cooldownLabel;


        bool isShowing = false;
        public bool IsShowing()
        {
            return isShowing;
        }

        public void Show()
        {
            
            gameObject.SetActive(true);
            isShowing = true;
        }

        public void Hide()
        {
            gameObject.SetActive(false);
            isShowing = false;
        }

        public void Update()
        {
            cooldownLabel.text = ((int)BattleManager.Instance.battleViewCtrl.transLeftTime).ToString();
        }

        //public void LeftRotate()
        //{
        //    BattleManager.GetInstance().battleViewCtrl.SendTransfer(true);
        //}


        //public void RightRotate()
        //{
        //    BattleManager.GetInstance().battleViewCtrl.SendTransfer(false);
        //}

        public void Comfirm()
        {
            BattleManager.Instance.battleViewCtrl.SendConfirmTrans();
        }


    }
}